home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 963 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  993 b 

  1. Path: charm.il.ft.hse.nl!not-for-mail
  2. From: robert@il.ft.hse.nl (Robert Klep)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to listen to a port < 1024
  5. Date: 10 Jan 1996 16:06:51 +0100
  6. Organization: LSD...melts in your mind, not in your hand
  7. Message-ID: <4d0kmb$sha@charm.il.ft.hse.nl>
  8. References: <brianrDKvJAx.MzG@netcom.com>
  9. NNTP-Posting-Host: charm.il.ft.hse.nl
  10. Keywords: IP, port
  11.  
  12. brianr@netcom.com (Brian Rankin):
  13.  >I have a program that listens to a port on an IP address.  I'd like it
  14.  >to listen to port 80, but don't know how to make this happen (I understand
  15.  >that ports < 1024 are somehow "restricted"...).  What's the proper way to
  16.  >make this work?  Sorry if I'm posting to the incorrect newsgroup..
  17.  
  18. Ports below 1024 are reserved for superuser only, so run the program as
  19. root, make it suid-root (be careful) or pick a port which is 1024+.
  20. Btw, the correct newsgroup you're looking for is comp.unix.programmer.
  21.  
  22.                                                                 robert
  23.